﻿using ArduinoAnalyzer.Tokens;
using ArduinoAnalyzer.Tokens.LexicalAnalysis;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ArduinoAnalyzer.SemanticAnalysis
{
    public class SemanticError
    {
        public SemanticError(string message, Token token)
        {
            _message = message;
            _token = token;
        }

        private string _message;
        public string Message
        {
            get { return _message; }
        }

        private Token _token;
        public Token Token
        {
            get { return _token; }
        }

        public override string ToString()
        {
            return _message;
        }
    }
}
